/*
 * @Author: zhangguowei 974599791@qq.com
 * @Date: 2022-08-26 10:38:54
 * @LastEditors: zhangguowei 974599791@qq.com
 * @LastEditTime: 2022-08-26 17:05:23
 * @Description: axios实例,默认配置，拦截器等
 */
import axios, { AxiosRequestConfig, AxiosInstance, AxiosPromise } from "axios";

// 创建axios实例
const request: AxiosInstance = axios.create({
  baseURL: "http://", // api 的 base_url
  timeout: 60000, // 请求超时时间
});

const useRequst = () => {
  return {
    request,
  };
};

export { useRequst };
